package chatServer;

import chatUniversal.Message;
import chatUniversal.InterfNotifier;
import java.net.InetAddress;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

/**
 * 
 * @author unknown
 */
public interface ChatServiceRemoteInterface extends Remote{

    /**
     * the sendMessage method, as used in the implementation is used to send a message from the client to the server
     * @param message
     * @param fromClient
     * @return
     * @throws RemoteException
     */
    public String sendMessage(String message, String fromClient) throws RemoteException;
    
    public void registerClient(String Client, String ipAddress) throws RemoteException;
    
    public void removeClient(String Client) throws RemoteException;
    
    public List<Message> getLatest(String client) throws RemoteException;
}